﻿using System;
using System.Collections.Generic;
using System.Linq;
using FluentAssertions;
using Sustainalytics.ClientDW.Entities;
using Sustainalytics.ScreeningTool.Synchronization.Handlers;
using Xunit;

namespace Sustainalytics.ScreeningTool.Synchronization.Tests.Handlers.Type7GCOverallCompanySummaryExtendedHandlerTests
{
    [Trait("Category", "Unit")]
    public class HasPrinciples_Should
    {
        [Fact]
        public void return_false_if_principles_sequence_is_null()
            => ((GCPrincipleTemplate[])null).HasPrinciples().Should().Be(false);

        [Fact]
        public void return_false_if_principles_sequence_is_empty()
            => (new GCPrincipleTemplate[] { }).HasPrinciples().Should().Be(false);

        [Fact]
        public void return_true_if_principles_sequence_has_elements()
            => (new GCPrincipleTemplate[] { new GCPrincipleTemplate() }).HasPrinciples().Should().Be(true);
    }
}
